package com.smarth.zhizulian.http.exception;

import com.smarth.zhizulian.bean.BaseEntity;

/**
 * Created by 18865 on 2017/12/25.
 */

public class ApiException extends Exception {
    private BaseEntity be;

    public ApiException(BaseEntity be) {
        super(be.getCode() + ", " + be.getMessage());
        this.be = be;
    }

    public BaseEntity getBe() {
        return be;
    }

    public void setBe(BaseEntity be) {
        this.be = be;
    }
}
